<script type="text/javascript"><!--//--><![CDATA[//><!--
    $(document).ready(function() {
        // Setup Form
        $('#form_popup').setupForm([
            { name: 'kode_mitra', type: 'text', size: 'short', maxlength: 40, noempty: true },
            { name: 'nama_mitra', type: 'text', size: 'long', maxlength: 225, noempty: true},
			{ name: 'alamat_lengkap', type: 'text', size: 'long', maxlength: 225, noempty: true
				/*onClearButton:function(){
					$(this).setval(''); 
					$('#person_id, #user_name, #email, #department_code').setval(''); 
				},
				onActionButton:function(){ 
					LOVperson({ onSelect:function(row){ 
						$('#person_id').setval(row.person_id); 
						$('#nip').setval(row.nip); 
						$('#user_name').setval(row.full_name); 
						$('#email').setval(row.email); 
						$('#department_code').setval(row.department_code); 
					}, param : '?no_user=1' }); 
				}*/
			},
			{ name: 'no_telp', type: 'text', size: 'short', maxlength:16, noempty: true },
            { name: 'no_fax', type: 'text', size: 'short', maxlength:20, noempty: true },
            { name: 'jenis_usaha', type: 'text', size: 'long', maxlength: 225 },
            { name: 'jenis_produk', type: 'text', size: 'medium', maxlength:60 },
			<?php /*
			{ name: 'department_code', size: 'medium', data:<?php echo json_encode(array_merge(array(array('value'=>'','display'=>'')), $combo_departement)); ?> },
            { name: 'culture_id', data:<?php echo json_encode($combo_culture); ?>, size: 'medium'},
			*/ ?>
            { name: 'npwp', type: 'text', size: 'medium', maxlength:60},
			{ name: 'website', type: 'text', size: 'medium', maxlength:60 },
            { name: 'email', type: 'text', size: 'medium', maxlength:60 }
        ]);
        
       /* <?php if($mode=="edit"){ ?>
        $('#user_id').readonly();
        //$('#user_password').setTooltips('kosongkan jika tidak ingin merubah user_password');
        $('#user_password').after('<div style="font-size:9px;">kosongkan jika tidak ingin merubah user_password</div>');
        <?php } ?>
        
		$('#person_id').hide();
		$('#culture_id').readonly();
		*/
		
		$('#tt').tabs({  
			border:false,
			onSelect:function(title){  
					return false;
			}  
		});  

        // Focus at First Object
		$('#form_popup').focusFirst();
		
		/*<?php if($readonly_role){ ?>
			$('#department_code').readonly();
			$('#status').readonly();        
	    <?php } ?>*/
    });
//--><!]]></script>

<div id="tt" class="easyui-tabs" style="width:550px;height:380px;">  
    <div title="Data Mitra" style="padding:10px;">
        <div id="form_popup_message" style="display:none;"></div>
        <table class="tb_form" style="width:100%;" cellpadding="0" cellspacing="0">
        <tr>
            <td><font size ='3px'><strong><u>Mitra</u></strong></td>
            <td></td>
        <tr>
            <td class="label">Kode Mitra</td>
            <td><input id="kode_mitra" /></td>
        </tr>
        <tr>
            <td class="label">Nama Mitra</td>
            <td><input id="nama_mitra" /></td>
        </tr>
        <tr>
            <td class="label">Alamat Toko</td>
            <td><input id="alamat_lengkap" /></td>
        </tr>
        <tr>
            <td class="label">Nomor Telepon</td>
            <td><input id="no_telp" /></td>
            </tr>
        <tr>
            <td class="label">Nomor Fax</td>
            <td><input id="no_fax" /></td>
        </tr>
        <tr>
            <td class="label">Jenis Usaha</td>
            <td><input id="jenis_usaha" /></td>
        </tr>
        <tr>
            <td class="label">Jenis Produk</td>
            <td><input id="jenis_produk" /></td>
        </tr>
        <tr>
            <td class="label">NPWP</td>
            <td><input id="npwp" /></td>
        </tr>
        <tr>
            <td class="label">Website</td>
            <td><input id="website" /></td>
       </tr>
        <tr>
            <td class="label">Email</td>
            <td><input id="email" /></td>
        </tr>
        </table> 
</div>
